import java.util.ArrayList;


public abstract class Sorts implements Comparable
{	
	public static void Sort(ArrayList objects) {
	    for (int i=0; i < objects.size(); i++) {
	        /* Insert a[i] into the sorted sublist */
	        Object v = objects.get(i);
	        int j;
	        for (j = i - 1; j >= 0; j--) {
	            if (((Comparable)objects.get(j)).compareTo(v) <= 0) break;
	            	objects.set(j + 1, objects.get(j));
	        }
	        objects.set(j + 1, v);
	    }
	}
}
